package cn.tedu.cake.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Data
public class OrderAddNewDTO implements Serializable {
    @ApiModelProperty(value = "订单Id",required = true)
    @NotNull(message = "必须提交订单Id")
    private Integer orderId;

    @ApiModelProperty(value = "商品Id",required = true)
    @NotNull(message = "必须提交商品Id")
    private Integer productId;

    @ApiModelProperty(value = "用户Id",required = true)
    @NotNull(message = "必须提交用户Id")
    private Integer userId;
}
